package com.budwk.app.sqfw.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import com.budwk.starter.database.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;

/**
 * 腾讯云
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("shequ.sqfw_imgcallback")
@Comment("语音识别回调")
@ApiModel(description = "图片识别回调")
public class Sqfw_ImgCallback extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @Comment("编号")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(uu32 = true)
    private String id;

    @Column
    @Comment("任务状态码")
    @ApiModelProperty(description = "任务状态码")
    @ColDefine(type = ColType.INT, width = 20)
    private String code;

    @Column
    @Comment("失败原因文字描述")
    @ApiModelProperty(description = "失败原因文字描述")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String message;

    @Column("request_id")
    @Comment("第三方请求id")
    @ApiModelProperty(description = "第三方请求id")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String requestId;

    @Column("appid")
    @Comment("第三方应用id")
    @ApiModelProperty(description = "第三方应用id")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String appId;

    @Column("project_id")
    @Comment("第三方项目id")
    @ApiModelProperty(description = "第三方项目id")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String projectId;

    @Column("img_url")
    @Comment("图片url")
    @ApiModelProperty(description = "图片url")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String imgUrl;

    @Column
    @Comment("识别结果")
    @ApiModelProperty(description = "识别结果")
    @ColDefine(type = ColType.TEXT)
    private String text;

    @Column("result_detail")
    @Comment("详细识别结果")
    @ApiModelProperty(description = "详细识别结果")
    @ColDefine(type = ColType.TEXT)
    private String resultDetail;

    @Column("take_time")
    @Comment("花费时间")
    @ApiModelProperty(description = "花费时间")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private Long takeTime;

    @Column("business_type")
    @Comment("业务类型 flow工作流 服务记录")
    @ApiModelProperty(description = "业务类型 flow工作流 服务记录\"")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String businessType;

    @Column("business_id")
    @Comment("相应的服务类型 业务id")
    @ApiModelProperty(description = "相应的服务类型 业务id")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String businessId;
}
